home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / btsys.arc / BTGLOBAL.H < prev    next >
Text File  |  1984-12-14  |  1KB  |  50 lines

  1. /*   global stuff for all modules in btsys    */
  2.  
  3. #define BTSETCOD(x,y,z) {  gfilhand = x;\
  4.              gdatapt = y;\
  5.              return(z);  }
  6.  
  7. #define SELF 384
  8. #define INTCHAR 388
  9. #define INTINT 392
  10. #define INTKEY 396
  11. #define LFILNAM 14
  12. #define LBLEN 80
  13. #define MAXFIL 4
  14. #define SETUP 0x31
  15. #define VECNO 0x60
  16. #define STACKS 0x80
  17. #define PARAS 4096
  18. #define LKEYLEN 16
  19.  
  20.     int    openkt,    /* # of open files    */
  21.         gorder,    /* order of btree    */
  22.         gfcode,    /* function code    */
  23.         gfilhand,    /* file handle    */
  24.         gkeylen,    /* key length    */
  25.         gretcode,    /* return code    */
  26.         gdatapt;    /*data pointer    */
  27.     char    gfilnam[LFILNAM + 1],/* file name */
  28.         gfilkey[LKEYLEN + 1] /* file key */
  29.     ;
  30.  
  31.     int    *ip1, *ip2, *ip3;
  32.     char    *cp1, *cp2, *cp3;
  33.  
  34.     struct    {
  35.             unsigned    root;
  36.             unsigned    handle;
  37.             unsigned    keylen;
  38.             int              *infobuf;
  39.             int        *filbuf;
  40.             FILE        *fdesc;
  41.             char        *ikeyptr;
  42.             char        filnam[LFILNAM + 1];
  43.             char        curkey[LKEYLEN + 1];
  44.         }    btfilar[MAXFIL + 1];
  45.  
  46.     FILE    *fp, *fopen();
  47.     char    *calloc();
  48.  
  49. /*    end of global    */
  50.